<!DOCTYPE html>
<html>
<head th:include="fragment::headerOfjqgrid">
</head>
<body>
	<div id="table">
		<div>
			<div class="grid-btn">
				<div class="form-group col-sm-2">
					<input type="text" class="form-control" id="keyword" placeholder="用户名"/>
				</div>
					<a class="btn btn-default" onclick="UserHandler.query()"><i class="fa fa-filter"></i>&nbsp;查询</a>
					<a class="btn btn-danger"  onclick="UserHandler.del(getSelectedRows())"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
					<a class="btn btn-success" onclick="UserHandler.newAdd()"> <i class="fa fa-plus"></i>&nbsp;新增</a>
					<a class="btn btn-primary" onclick="UserHandler.refresh()"><i class="fa fa-refresh"></i>&nbsp;刷新</a>
				<div class="form-group col-sm-4">
<!-- 				<div class="input-group"> -->
<!-- 					<span class="input-group-addon"> -->
<!--                   		最后使用时间 -->
<!--                 	</span> -->
<!--                 	<input type="text" class="form-control" id="filterTime" readonly=""/> -->
<!--                 </div> -->
                </div>
			</div>
			<table id="jqGrid"></table>
			<div id="jqGridPager"></div>
		</div>
	</div>
	
	
	<div id="detail" class="panel panel-default" style="display:none;">
		<div class="panel-heading">新增</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">用户名</div>
				<div class="col-sm-10">
					<input type="text" name="username" placeholder="用户名" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">邮箱</div>
				<div class="col-sm-10">
					<input type="text" name="email" placeholder="邮箱" class="form-control" />
				</div>
			</div>
			
			<div class="form-group">
				<div class="col-sm-2 control-label">初始密码</div>
				<div class="col-sm-10">
					<input type="password" name="password" placeholder="初始密码" class="form-control" />
				</div>
			</div>
			
			<div class="form-group">
				<div class="col-sm-2 control-label">确认密码</div>
				<div class="col-sm-10">
					<input type="password" name="pwd" placeholder="确认密码" class="form-control" />
				</div>
			</div>
			
			
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" value="确定" class="btn btn-primary" onclick="UserHandler.save()"/> &nbsp;&nbsp;
				<input type="button" value="返回" class="btn btn-warning" onclick="UserHandler.cancel()"/>
			</div>
			
		</form>
	</div>
	<script th:src="@{/statics/js/modules/user/user-list.js}"></script>
</body>
</html>